package entity

type Firmware struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	EbikeTypeId int64 `gorm:"column:ebike_type_id;type:BIGINT" json:"ebike_type_id"`

	EbikeType string `gorm:"column:ebike_type;type:VARCHAR(255)" json:"ebike_type"`

	Name string `gorm:"column:name;type:VARCHAR(255)" json:"name"`

	Version string `gorm:"column:version;type:VARCHAR(255)" json:"version"`

	Path string `gorm:"column:path;type:VARCHAR(255)" json:"path"`

	ExecStatus int `gorm:"column:exec_status;type:TINYINT" json:"exec_status"`

	Desc string `gorm:"column:desc;type:VARCHAR(255)" json:"desc"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *Firmware) TableName() string {
	return "firmwares"
}
